\subsection{main.c File Reference}
\label{main_8c}\index{main.c@{main.c}}


\doxyref{main()}{p.}{authtest_8c_a0ddf1224851353fc92bfbff6f499fa97} function with command loop.  


{\ttfamily \#include $<$config.h$>$}\par
{\ttfamily \#include $<$auth.h$>$}\par
{\ttfamily \#include $<$commands.h$>$}\par
{\ttfamily \#include $<$sw.h$>$}\par
{\ttfamily \#include $<$fs.h$>$}\par
{\ttfamily \#include $<$hal.h$>$}\par
{\ttfamily \#include $<$t0.h$>$}\par
{\ttfamily \#include $<$transaction.h$>$}\par
\subsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int {\bf main} (void)
\begin{DoxyCompactList}\small\item\em Main function containing command interpreter loop. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsubsection{Detailed Description}
\doxyref{main()}{p.}{authtest_8c_a0ddf1224851353fc92bfbff6f499fa97} function with command loop. 

\subsubsection{Function Documentation}
\index{main.c@{main.c}!main@{main}}
\index{main@{main}!main.c@{main.c}}
\paragraph[{main}]{\setlength{\rightskip}{0pt plus 5cm}int main (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\hfill\label{main_8c_a840291bc02cba5474a4cb46a9b9566fe}


Main function containing command interpreter loop. 

At the end of the loop, sw is sent as the status word.

This function does never return. 

References ATR\_\-ADDR, ATR\_\-LEN\_\-ADDR, ATR\_\-MAXLEN, auth\_\-init(), challvalidity, CLA\_\-PROP, cmd\_\-changeUnblockPIN(), cmd\_\-create(), cmd\_\-delete(), cmd\_\-extAuth(), cmd\_\-getChallenge(), cmd\_\-getResponse(), cmd\_\-intAuth(), cmd\_\-led(), cmd\_\-read(), cmd\_\-readBinary(), cmd\_\-select(), cmd\_\-updateBinary(), cmd\_\-verifyKeyPIN(), cmd\_\-write(), fs\_\-init(), hal\_\-eeprom\_\-read(), hal\_\-init(), hal\_\-io\_\-recByteT0(), hal\_\-io\_\-sendByteT0(), hal\_\-rnd\_\-addEntropy(), header, INS\_\-CHANGE\_\-PIN, INS\_\-CREATE, INS\_\-DELETE, INS\_\-EXTERNAL\_\-AUTH, INS\_\-GET\_\-CHALLENGE, INS\_\-GET\_\-RESPONSE, INS\_\-INTERNAL\_\-AUTH, INS\_\-LED, INS\_\-READ, INS\_\-READ\_\-BINARY, INS\_\-SELECT, INS\_\-UNBLOCK\_\-PIN, INS\_\-UPDATE\_\-BINARY, INS\_\-VERIFY\_\-KEY, INS\_\-VERIFY\_\-PIN, INS\_\-WRITE, log\_\-init(), resplen, SW\_\-WRONG\_\-CLA, SW\_\-WRONG\_\-INS, t0\_\-sendSw(), t0\_\-sendWord(), and ta\_\-commit().

